//
//  UIImage+WaterMark.h
//  自定义相册
//
//  Created by DongSen on 2018/7/9.
//  Copyright © 2018年 beok. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (WaterMark)

/**
 两张图片合并

 @param mask <#mask description#>
 @param rec <#rec description#>
 @return <#return value description#>
 */
- (UIImage *) imageWithWaterMask:(UIImage*)mask;

/**
 对系统相机获取图片进行压缩
 
 @return 压缩后图片
 */
- (UIImage *)compressImage;

/**
 对系统相机回去过大尺寸图片压缩
 
 @param size 尺寸自定义
 @return 返回压缩后图片
 */
- (UIImage *)compressImagewithSize:(CGSize)size;


+ (UIImage *)ownercompressImage:(UIImage *)image toByte:(NSUInteger)maxLength;


/**
 头像处理
 
 @return <#return value description#>
 */
- (UIImage *)clipImage;
@end
